var counter = 1;

function showLocation(data) {
	
	document.getElementById("location-long").innerHTML = "LONG: " + data["LONG"];
	document.getElementById("location-lati").innerHTML = "LATI: " + data["LATI"];
}

function showOldLocation(data) {
	
	document.getElementById("location-history").innerHTML += data["LONG"] + " : " + data["LATI"];
}

function showSensorData(data) {
	
	document.getElementById("sensor-event-counter").innerHTML = "Sensor Event Counter: " + counter;
	document.getElementById("sensor-azimuth").innerHTML = "AZIMUTH: " + data["AZIMUTH"];
	document.getElementById("sensor-pitch").innerHTML = "PITCH: " + data["PITCH"];
	document.getElementById("sensor-roll").innerHTML = "ROLL: " + data["ROLL"];
	counter++;
}
